<script>
	$(function() {
<<<<<<< .mine
		$( "#txtNgaythanhlap" ).datepicker({dateFormat: 'dd-mm-yy'});
		$("#cboCountry").change(function() { 
		/* do something here */ 
			var ajax_url = '../incs/list_school_by_country_id.php?qg_id='+ $("#cboCountry").val();
			$.get(ajax_url,function(data){
			$('#cboSchool').html(data);
			});
		});
=======

		$( "#txtNgaynghiemthu" ).datepicker({dateFormat: 'dd-mm-yy'});
>>>>>>> .r85
	});
</script>
<<<<<<< .mine
=======

>>>>>>> .r85
<?php
if (!defined('WEB_ROOT')) {
	exit;
}

$truong_id = (isset($_GET['$truong_id']) && $_GET['$truong_id'] > 0) ? $_GET['$truong_id'] : 0;

$dv_id = (isset($_GET['$dv_id']) && $_GET['$dv_id'] > 0) ? $_GET['$dv_id'] : 0;


$schoolList = buildSchoolOptions($truong_id);
$countryList = buildCountryOptions($qg_id);
?> 

<div class="onecolumn">
	<div class="header">
		<span>Thêm trường</span>
	</div>
	<br class="clear"/>
	<div class="content">
			<form action="processSchool.php?action=addSchool" method="post" enctype="multipart/form-data" name="frmAddSchool" id="frmAddSchool">
					  <table width="100%" border="0" align="center" cellpadding="5" cellspacing="1" class="entryTable">
					  <tr> 
						   <td width="150" class="label">Mã trường <span  class="dau*">(*)</span></td>
						   <td class="content"> <input name="txtMadv" type="text" class="box" id="txtMadv" size="20" maxlength="20"></td>
					  </tr>
					  <tr> 
						   <td width="150" class="label">Tên trường <span  class="dau*">(*)</span></td>
						   <td class="content"> <input name="txtTendv" type="text" class="box" id="txtTendv" size="60" maxlength="60"></td>
					  </tr>
					  <tr> 
						   <td width="150" class="label">Điện thoại trường</td>
						   <td class="content"> <input name="txtDienthoai_dv" type="text" class="box" id="txtDienthoai_dv" size="60" maxlength="60"></td>
					  </tr>
					  <tr> 
						   <td width="150" class="label">Địa điểm</td>
						   <td class="content"> <input name="txtDiadiem" type="text" class="box" id="txtDiadiem" size="60" maxlength="60"></td>
					  </tr>	  
					  <tr> 
						   <td width="110" class="label">Quốc gia</td>
						   <td class="content"> <select name="cboCountry" id="cboCountry" class="box">
							<option value="" selected>-- Chọn quốc gia --</option>
								<?php
									echo $countryList;
								?>	 
							</select>  
					  </tr>
					  <tr> 
						   <td width="150" class="label">Ngày thành lập</td>
						   <td class="content"><input name="txtNgaythanhlap" type="text" id="txtNgaythanhlap" size="20" maxlength="20" class="box"> </td>
					  </tr>
					 </table>
					 <p align="center"> 
					  <input name="btnAddSchool" type="button" id="btnAddSchool" value="Thêm trường" onClick="checkAddSchoolForm();" class="box">
					  &nbsp;&nbsp;<input name="btnCancel" type="button" id="btnCancel" value=" Hủy " onClick="window.location.href='index.php';" class="box">  
					 </p>
					</form>
				</div>
			</div>


